package com.orange.handler.impl;

import java.sql.SQLException;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.orange.handler.AuthTeachResourceService;
import com.orange.modules.dao.AuthTeachResourceDataRepository;
import com.orange.modules.entity.school_data.AuthTeachResource;

@Service
public class AuthTeachResourceServiceImpl implements AuthTeachResourceService{

	@Autowired
	private AuthTeachResourceDataRepository authTeachResourceDataRepository;
	
	@Override
	public void insertTeachResource(AuthTeachResource atr) throws SQLException {
		// TODO Auto-generated method stub
		authTeachResourceDataRepository.insertTeachResource(atr);
	}

	@Override
	public AuthTeachResource queryAuthTeachResourceDataBySchoolId(
			String schoolId, String loginType) throws SQLException {
		// TODO Auto-generated method stub
		AuthTeachResource atr = authTeachResourceDataRepository.queryAuthTeachResourceDataBySchoolId(schoolId, loginType);
		return atr;
	}

}
